<link href="flink/images/css.css"  type="text/css" rel="stylesheet"/>
<script type="text/livescript">
  function checkform()
  {	
	var webname=document.form1.webname.value;
	var url=document.form1.url.value;
	var validate=document.form1. validate.value;
	if(webname=="")
	{
	  alert("申请网站名称不能为空！");
	  form1.webname.focus();
	  return false;	
	}
	else if(url=="")
	{
	  alert("申请链接不能为空！");
	  form1.url.focus();
	  return false;	
	}
	else if(validate=="")
	{
	  alert("验证码不能为空！");
	  form1.validate.focus();
	  return false;		
	}
	else
	{
	  return true;	
	}
  }
</script>
<div class="link_k">
  <?php
    $row = 180;
    $titlelen = 50;
    $dsql->SetQuery("Select * from `#@__flink` where ischeck>0 order by sortrank asc");
    $dsql->Execute();
    $wenzi.="<div class='links_t'>文字链接:</div><div class='linksbox'><ul>";
    $tupian.="<div class='links_t'>图片链接:</div><div class='linksbox'><ul>";
    for($i=1;$i<=$row;$i++)
    {
      if($dbrow=$dsql->GetObject())
      {
        $wtitle = cn_substr($dbrow->webname,$titlelen);
        if($dbrow->logo==""){             
            $wenzi.= "<li><a href='".$dbrow->url."' target='_blank'>$wtitle</a></li>";
            }
        else{              
            $tupian.= "<li><a href='".$dbrow->url."' target='_blank'><img src='".$dbrow->logo."' width='90' height='35' alt='".$dbrow->wtitle."' /></a></li>";            }
      }
    if(!$dbrow) break;
    }
    $wenzi.="</ul></div>";
    $tupian.="</ul></div>";
    echo  $wenzi;
    echo  $tupian;
  ?>
 <div class="links_t">链接要求:</div>
 <div class="formbox">
1．本站只和**类或资源类网站交换链接。<br>
2. 收录正常，快照15天内，权重1~2，pr2~4的网站。
2．符合以上条件的网站，请先做好本站链接，然后页面下方提交贵站的链接信息。<br>
3．不符合以上要求的朋友请勿提交链接，否则不予通过。<br>
4．本站的关键字:YeshiliCMS(http://www.yeshilicms.com/)。<br>
 </div>
 <div class="links_t">申请链接:</div>
 <div class="formbox">
  <table border="0" align="left" cellspacing="0" cellpadding="0">
    <form onsubmit="return checkform();" action="/plus/flink.php" method="post" name="form1">
	  <input type="hidden" value="save" name="dopost">       
       <tr>
        <td height="25">网站名称：</td>
        <td><input type="text" class="ipt-txt" size="30" id="webname" name="webname">&nbsp;*</td>
       </tr>
       <tr> 
        <td height="25">网址：</td>
        <td><input type="text" class="ipt-txt" size="30" value="http://" id="url" name="url">&nbsp;*</td>
       </tr>
       <tr> 
        <td height="25">网站Logo：</td>
        <td><input type="text" class="ipt-txt" size="30" value="" id="logo" name="logo">(90*35 gif或jpg)</td>
       </tr>
       <tr> 
        <td height="25">网站简况：</td>
        <td> <textarea class="ipt-txt" id="msg" rows="4" cols="40" name="msg"></textarea></td>
       </tr>
       <tr> 
        <td height="25">站长Email：</td>
        <td><input type="text" class="ipt-txt" size="30" id="email" name="email"></td>
       </tr>
        <tr>
         <td height="25">验证码：</td>
         <td>
          <table width="200" border="0" cellspacing="0" cellpadding="0">
          <tr> 
           <td width="84"><input type="text" style="text-transform: uppercase;" class="ipt-txt" size="10" id="vdcode2" name="validate"></td>
           <td width="116"><img alt="点击我更换图片" title="点击我更换图片" onclick="this.src=this.src+'?'" style="cursor:pointer" src="../include/vdimgck.php"></td>
          </tr>
          </table>
         </td>
        </tr>
        <tr> 
         <td height="51">&nbsp;</td>
         <td><input type="submit" class="btn-1" value=" 提 交 " name="Submit"><input  class="btn-1" type="reset" value=" 重 置 " name="Submit"></td>
        </tr>
     </form>    
   </table>  
</div>